package com.hxl.demo.service.Impl;

import com.hxl.demo.entity.TrainingRecord;
import com.hxl.demo.mapper.TrainingStatisticsMapper;
import com.hxl.demo.param.TrainingStatisticsParam;
import com.hxl.demo.service.TrainingStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 培训统计
 */
@Service
public class TrainingStatisticsServiceImpl implements TrainingStatisticsService {
    @Resource
    private TrainingStatisticsMapper trainingStatisticsMapper;

    @Override
    public List<Map<String,Object>> queryList(TrainingStatisticsParam param) {

        return trainingStatisticsMapper.queryList(param);
    }

    @Override
    public List<Map<String, Object>> queryDetails(TrainingStatisticsParam param) {
        return trainingStatisticsMapper.queryDetails(param);
    }

    @Override
    public Integer queryDetailsNum(TrainingStatisticsParam param) {
        return trainingStatisticsMapper.queryDetailsNum(param);
    }

    @Override
    public Integer queryListNum(TrainingStatisticsParam param) {
        return trainingStatisticsMapper.queryListNum(param);
    }
}
